package com.relytosoft.mizar.media.display.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.relytosoft.dubhe.common.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 巡检组
 *
 * @Author SunLi
 * @Date: 2022/4/11 18:41
 * @Version 1.0
 */
@TableName("VID_ROTAGROUP")
@ApiModel("巡检组")
public class Rotagroup extends BaseEntity {
    private static final long serialVersionUID = 4211384542668914746L;

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    @TableId(value="ID", type= IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", required = true)
    @TableField("GROUP_NAME")
    @NotBlank(message = "名称不能为空")
    private String groupName;
    /**
     * 轮巡间隔;时间(s)
     */
    @ApiModelProperty(value = "轮巡间隔;时间(s)")
    @TableField("ROTA_INTERVAL")
    @NotNull(message = "轮巡间隔不能为空")
    private Integer rotaInterval;

    /**
     * 窗口分割;视频窗口布局
     */
    @ApiModelProperty(value = "窗口分割;视频窗口布局")
    @TableField("LAYOUT")
    @NotNull(message = "窗口分割不能为空")
    private Integer layout;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @TableField("SORT")
    private Integer sort;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @TableField("STATUS")
    private Integer status;

    /**
     * 获得主键ID
     */
    public Integer getId(){
        return this.id;
    }
    /**
     * 设置主键ID
     */
    public void setId(Integer id){
        this.id = id;
    }

    /**
     * 获得名称
     */
    public String getGroupName(){
        return this.groupName;
    }
    /**
     * 设置名称
     */
    public void setGroupName(String groupName){
        this.groupName = groupName;
    }

    /**
     * 获得轮巡间隔;时间(s)
     */
    public Integer getRotaInterval(){
        return this.rotaInterval;
    }
    /**
     * 设置轮巡间隔;时间(s)
     */
    public void setRotaInterval(Integer rotaInterval){
        this.rotaInterval = rotaInterval;
    }

    /**
     * 获得窗口分割;视频窗口布局
     */
    public Integer getLayout(){
        return this.layout;
    }
    /**
     * 设置窗口分割;视频窗口布局
     */
    public void setLayout(Integer layout){
        this.layout = layout;
    }

    /**
     * 获得排序
     */
    public Integer getSort(){
        return this.sort;
    }
    /**
     * 设置排序
     */
    public void setSort(Integer sort){
        this.sort = sort;
    }

    /**
     * 获得备注
     */
    public String getRemark(){
        return this.remark;
    }
    /**
     * 设置备注
     */
    public void setRemark(String remark){
        this.remark = remark;
    }

    /**
     * 获得状态
     */
    public Integer getStatus(){
        return this.status;
    }
    /**
     * 设置状态
     */
    public void setStatus(Integer status){
        this.status = status;
    }

    @Override
    public String toString() {
        return "Rotagroup{" +
                "id=" + id +
                ", groupName='" + groupName + '\'' +
                ", rotaInterval=" + rotaInterval +
                ", layout=" + layout +
                ", sort=" + sort +
                ", remark='" + remark + '\'' +
                ", status=" + status +
                ", createdId=" + createdId +
                ", createdBy='" + createdBy + '\'' +
                ", createdTime=" + createdTime +
                ", updatedId=" + updatedId +
                ", updatedBy='" + updatedBy + '\'' +
                ", updatedTime=" + updatedTime +
                '}';
    }
}
